package edu.sctu.practice.class02.zhaozhongjun.test18;

/**
 * Created by zhao on 2015/11/5.
 */
public class Car extends Auto {
    boolean Aircondition;
    boolean CD;

    public Car(int tires, String color, int load, int speed, boolean aircondition, boolean CD) {
        super(tires, color, load, speed);
        this.Aircondition = Aircondition;
        this.CD = CD;
    }

    public void upSpeed() {
        System.out.println("开始加速了");
    }

    public void downSpeed() {
        System.out.println("开始减速了");
    }

    public void getInfo() {
        System.out.println("轮胎数：" + tires + "\n 颜色: " + color + "\n车身重量：" + load + "t\n速度" + speed + "Km/h\n有空调：" + Aircondition + "\n有CD:" + CD);
    }
}